/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package newsparser.news;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author boyarskiy_km
 */
public class News{
    private int id;
    private String header;
    private String rubric;
    private int rubric_id;
    private String text;
    private Date date;
    private SimpleDateFormat sdf = new SimpleDateFormat("DD.MM.YY");

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getHeader() {
        return header;
    }
    public void setHeader(String header) {
        this.header = header;
    }
    public String getRubric() {
        return rubric;
    }
    public void setRubric(String rubric) {
        this.rubric = rubric;
    }
    public int getRubric_id() {
        return rubric_id;
    }
    public void setRubric_id(int rubric_id) {
        this.rubric_id = rubric_id;
    }
    public String getText() {
        return text;
    }
    public void setText(String text) {
        this.text = text;
    }
    public Date getDate() {
        return date;
    }
    public void setDate(Date date) {
        this.date = date;
    }

    
    
    public News(int id, String header, String rubric, int rubric_id, String text, Date date) {
        this.id = id;
        this.header = header;
        this.rubric = rubric;
        this.rubric_id = rubric_id;
        this.text = text;
        this.date = date;
    }
    
}
